package com.irdstudio.efp.console.service.dao;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.irdstudio.efp.console.service.domain.SRescAct;
import com.irdstudio.efp.console.service.domain.SResource;
/**
 * <p>DAO interface:系统资源操作信息表				<p>
 * @author fuzm
 * @date 2018-05-03
 */
public interface SRescActDao {
	
	public int insertSRescAct(SRescAct sRescAct);
	
	public int deleteByPk(SRescAct sRescAct);
	
	public int updateByPk(SRescAct sRescAct);
	
	public SRescAct queryByPk(SRescAct sRescAct);
	
	public List<SRescAct> queryAllOwnerByPage(SRescAct sRescAct);
	
	public List<SRescAct> queryAllCurrOrgByPage(SRescAct sRescAct);
	
	public List<SRescAct> queryAllCurrDownOrgByPage(SRescAct sRescAct);
	/**
	 * 查询资源下的所有资源操作 信息
	 * @param rescCode 资源码
	 * @return
	 */
	public List<SRescAct> queryAllByRescCode(@Param("rescCode")String rescCode);
	/**
	 * 根据资源码 删除资源操作信息
	 * @param rescCode 资源码
	 * @return
	 */
	public int deleteByRescCode(@Param("rescCode")String rescCode);

	/**
	 * 资源更新时,更新资源操作码信息
	 * @param sResource
	 * @return
	 */
	public int updateRescActByRescCode(SResource sResource);
}